package vo;

import pojo.Book;

/**
 * 数据库查询的结果的一个映射  工具类 ,
 * 这种功能的类, 有一个统一的名称 ViewObject
 */
public class BookVO extends Book {

    private Integer sort_id;
    private String sort_name;

    public Integer getSort_id() {
        return sort_id;
    }

    public void setSort_id(Integer sort_id) {
        this.sort_id = sort_id;
    }

    public String getSort_name() {
        return sort_name;
    }

    public void setSort_name(String sort_name) {
        this.sort_name = sort_name;
    }

    @Override
    public String toString() {
        return  "Book{" +
                "bookId=" + super.getBookId() +
                ", bookIsbn='" + super.getBookIsbn() + '\'' +
                ", bookName='" + getBookName() + '\'' +
                ", bookAuthor='" + getBookAuthor() + '\'' +
                ", bookPub='" + getBookPub() + '\'' +
                ", bookSort=" + getBookSort() +
                ", bookAbstract='" + getBookAbstract() + '\'' +
                ", bookTotal=" +  getBookTotal() +
                ", bookPhoto='" + getBookPhoto() + '\'' +
                ", bookPubLocation='" + getBookPubLocation() + '\'' +
                ", bookPubYear='" + getBookPubYear() + '\'' +
                ", sort_id=" + sort_id +
                ", sort_name='" + sort_name + '\'' +
                '}';
    }
}
